#include <iostream>

using namespace std;

class A
{
public:
    int _a;
};

class B : virtual public A
{
public:
    int _b;
};

class C : virtual public A
{
public:
    int _c;
};

class D : public B, public C
{
public:
    int _d;
};
// 0x00000049E937F850 b
// 0x00000049E937F860  c
// 0x00000049E937F868

// 3c ac c0 47 f7 7f 00 00
// 48 ac c0 47 f7 7f 00 00
int main()
{
    D d;
    d.B::_a = 1;
    d.C::_a = 2;
    d._b = 3;
    d._c = 4;
    d._d = 5;
    
    cout << d.B::_a << " " << d.C::_a;
    return 0;
}
// 48 7b 77 00
// 54 7b 77 00
